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": "7cc7e8f6-d20f-45f2-9320-c5351d319f19",
"jobId": "8d70866a-f7b5-406b-b7ef-cd026bad290c",
"fileExtension": "sample string 2"
}
text/html
{"id":"7cc7e8f6-d20f-45f2-9320-c5351d319f19","jobId":"8d70866a-f7b5-406b-b7ef-cd026bad290c","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": "939a7c3f-d840-4c03-aeed-8be173671ce7",
"jobId": "48b7939f-f04a-40ae-beb7-e30b961fb15e",
"fileExtension": "sample string 2",
"createdBy": "7674a319-78ac-4e1a-9424-f3ea76292253",
"tenantOrganisationId": "93f55722-ed14-4003-be67-881a91f11866"
}
text/html
{"id":"939a7c3f-d840-4c03-aeed-8be173671ce7","jobId":"48b7939f-f04a-40ae-beb7-e30b961fb15e","fileExtension":"sample string 2","createdBy":"7674a319-78ac-4e1a-9424-f3ea76292253","tenantOrganisationId":"93f55722-ed14-4003-be67-881a91f11866"}