Stopping an Audio Stream Moderation Job
Function
This API is used to stop an audio stream moderation job.
URI
POST /v3/{project_id}/moderation/audio-stream/jobs/stop/{job_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
job_id |
Yes |
String |
Job ID returned when a job is created |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token, which can be obtained by calling the IAM API (The token is the value of X-Subject-Token in the response header.) |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
String |
Result of stopping the audio stream moderation job |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code of a failed API call. For details, see Error Codes. This parameter is not included when the API is successfully called. |
error_msg |
String |
Error message of a failed API call. This parameter is not included when the API is successfully called. |
Example Request
Stop an audio stream moderation job.
POST https://{endpoint}/v3/{project_id}/moderation/audio-stream/jobs/stop/{job_id}
Example Response
Status code: 200
Example of a successful response
{ "result" : "success" }
Status code: 400
Example of a failed response
{ "error_code" : "AIS.0030", "error_msg" : "Job not found" }
Status Codes
Status Code |
Description |
---|---|
200 |
Example of a successful response |
400 |
Example of a failed response |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot