Job Router Operations - Close Job
Closes a completed job.
POST {endpoint}/routing/jobs/{jobId}/assignments/{assignmentId}:close?api-version=2023-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
assignment
|
path | True |
string |
Id of a job assignment. |
endpoint
|
path | True |
string |
Uri of your Communication resource |
job
|
path | True |
string |
Id of a job. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
closeAt |
string |
If not provided, worker capacity is released immediately along with a JobClosedEvent notification. If provided, worker capacity is released along with a JobClosedEvent notification at a future time in UTC. |
dispositionCode |
string |
Indicates the outcome of a job, populate this field with your own custom values. |
note |
string |
A note that will be appended to a job's Notes collection with the current timestamp. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
object |
The request has succeeded. |
Other Status Codes |
An unexpected error response. Headers x-ms-error-code: string |
Examples
Closes a completed job
Sample request
POST https://contoso.westus.communications.azure.com/routing/jobs/8780b28c-7079-4de1-9143-4d369289e958/assignments/1d5896f3-8b54-40be-82d3-910323f5e2af:close?api-version=2023-11-01
{
"dispositionCode": "JobCompleted.",
"note": "Closing job"
}
Sample response
{}
Definitions
Name | Description |
---|---|
Azure. |
The error object. |
Azure. |
A response containing error details. |
Azure. |
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
Close |
Request payload for closing jobs |
Azure.Core.Foundations.Error
The error object.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
details |
An array of details about specific errors that led to this reported error. |
|
innererror |
An object containing more specific information than the current object about the error. |
|
message |
string |
A human-readable representation of the error. |
target |
string |
The target of the error. |
Azure.Core.Foundations.ErrorResponse
A response containing error details.
Name | Type | Description |
---|---|---|
error |
The error object. |
Azure.Core.Foundations.InnerError
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
innererror |
Inner error. |
CloseJobOptions
Request payload for closing jobs
Name | Type | Description |
---|---|---|
closeAt |
string |
If not provided, worker capacity is released immediately along with a JobClosedEvent notification. If provided, worker capacity is released along with a JobClosedEvent notification at a future time in UTC. |
dispositionCode |
string |
Indicates the outcome of a job, populate this field with your own custom values. |
note |
string |
A note that will be appended to a job's Notes collection with the current timestamp. |