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": "2d10f0e9-4e77-420d-a896-7b8909d8ca55",
"jobId": "b51d47e0-933f-4d93-a701-7e93b6e8cb00",
"fileExtension": "sample string 2"
}
text/html
{"id":"2d10f0e9-4e77-420d-a896-7b8909d8ca55","jobId":"b51d47e0-933f-4d93-a701-7e93b6e8cb00","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": "717bca45-8575-4fba-85cb-7458e0a82272",
"jobId": "1816ac8b-de5d-4107-a411-08261b2743cf",
"fileExtension": "sample string 2",
"createdBy": "9fe81c1a-f264-4cb1-a416-97e8e230e5cc",
"tenantOrganisationId": "56c2e446-5b79-4c87-b692-d4315ce9cdde"
}
text/html
{"id":"717bca45-8575-4fba-85cb-7458e0a82272","jobId":"1816ac8b-de5d-4107-a411-08261b2743cf","fileExtension":"sample string 2","createdBy":"9fe81c1a-f264-4cb1-a416-97e8e230e5cc","tenantOrganisationId":"56c2e446-5b79-4c87-b692-d4315ce9cdde"}