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": "97ba2cf6-c1af-48f4-8a41-bc415052018d",
"jobId": "6a1a216e-f7ef-4939-8ce1-51c20599b888",
"fileExtension": "sample string 2"
}
text/html
{"id":"97ba2cf6-c1af-48f4-8a41-bc415052018d","jobId":"6a1a216e-f7ef-4939-8ce1-51c20599b888","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": "e282ae27-602e-466c-9f33-04f518072774",
"jobId": "f0abde8a-ab00-4d6b-9045-5f0faa19513a",
"fileExtension": "sample string 2",
"createdBy": "370dff9e-e092-47f9-b700-c926814c6a9d",
"tenantOrganisationId": "7d85c31b-c76d-4323-b464-eeb07280e473"
}
text/html
{"id":"e282ae27-602e-466c-9f33-04f518072774","jobId":"f0abde8a-ab00-4d6b-9045-5f0faa19513a","fileExtension":"sample string 2","createdBy":"370dff9e-e092-47f9-b700-c926814c6a9d","tenantOrganisationId":"7d85c31b-c76d-4323-b464-eeb07280e473"}