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
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

JobId

globally unique identifier

Required

FileExtension

string

Required

Request Formats

application/json, text/json

Sample:
{
  "id": "604925a5-b835-4f51-b73f-f0958cdc3504",
  "jobId": "16346d38-693e-4996-b562-32aa1920ca19",
  "fileExtension": "sample string 2"
}

text/html

Sample:
{"id":"604925a5-b835-4f51-b73f-f0958cdc3504","jobId":"16346d38-693e-4996-b562-32aa1920ca19","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.

API.Commands.Job.Commands.UploadJobAttachmentMetadataCommand
NameDescriptionTypeAdditional 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

Sample:
{
  "id": "a8ecd270-c339-4dfc-8481-e98ec7c42409",
  "jobId": "46ecc7ac-e866-4313-aca2-ea740630ab36",
  "fileExtension": "sample string 2",
  "createdBy": "db148b25-ac6c-426a-ad7d-6ade65bac5ae",
  "tenantOrganisationId": "86c05ad0-dbe6-403b-8349-115c222497eb"
}

text/html

Sample:
{"id":"a8ecd270-c339-4dfc-8481-e98ec7c42409","jobId":"46ecc7ac-e866-4313-aca2-ea740630ab36","fileExtension":"sample string 2","createdBy":"db148b25-ac6c-426a-ad7d-6ade65bac5ae","tenantOrganisationId":"86c05ad0-dbe6-403b-8349-115c222497eb"}