POST api/jobs/uploadattachment
Endpoint for submitting job attachment meta data.
Request Information
URI Parameters
None.
Body Parameters
request body - the updated attachment meta data.
API.Infrastructure.Dto.Jobs.JobAttachmentMetaDataDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| JobId | globally unique identifier |
Required |
|
| FileExtension | string |
Required |
Request Formats
application/json, text/json
{
"id": "286f8d53-e6ba-425e-bcb4-b47e57c51f89",
"jobId": "bcefda4c-f1fd-4997-a02f-564bb6157326",
"fileExtension": "sample string 2"
}
text/html
{"id":"286f8d53-e6ba-425e-bcb4-b47e57c51f89","jobId":"bcefda4c-f1fd-4997-a02f-564bb6157326","fileExtension":"sample string 2"}
Response Information
Resource Description
HTTP 200
The updated add job attachment command, with the record id
if that wasn't supplied as part of the request.
HTTP 400
EntityDoesntExist - Job with id: xxx doesn't exist. It was probably deleted.
EntityDoesntExist - JobAttachment with id: xxx doesn't exist. It was probably deleted.
NoAttachmentIdProvidedException - No ID provided for job attachment.
HTTP 500
An error occurred, please try again or contact the administrator.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| JobId | globally unique identifier |
None. |
|
| FileExtension | string |
None. |
|
| CreatedBy | globally unique identifier |
None. |
|
| TenantOrganisationId | globally unique identifier |
None. |
Response Formats
application/json, text/json
{
"id": "65b6d12a-e6d5-456b-861d-3a43f050d28e",
"jobId": "5a4335d6-f118-4fe8-83e9-70f95366bb3c",
"fileExtension": "sample string 2",
"createdBy": "82649523-124a-4c9f-83ec-c9b9c1c06d52",
"tenantOrganisationId": "0ee92ab4-816d-4c39-b6d0-c630f091b477"
}
text/html
{"id":"65b6d12a-e6d5-456b-861d-3a43f050d28e","jobId":"5a4335d6-f118-4fe8-83e9-70f95366bb3c","fileExtension":"sample string 2","createdBy":"82649523-124a-4c9f-83ec-c9b9c1c06d52","tenantOrganisationId":"0ee92ab4-816d-4c39-b6d0-c630f091b477"}