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": "d0d26363-236e-4c24-b2c6-87d0ee0245a7",
  "jobId": "d0b4fea1-516f-46e4-bf92-856132544ae4",
  "fileExtension": "sample string 2"
}

text/html

Sample:
{"id":"d0d26363-236e-4c24-b2c6-87d0ee0245a7","jobId":"d0b4fea1-516f-46e4-bf92-856132544ae4","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": "81c61567-c1aa-4114-8544-b91c341f7aa8",
  "jobId": "55d994f4-80d8-4f9e-a361-a86aaba0323e",
  "fileExtension": "sample string 2",
  "createdBy": "796adc7c-2ccc-4074-aa51-e71614ff6c6a",
  "tenantOrganisationId": "e4e84120-c90b-4015-8215-ca2571966bdd"
}

text/html

Sample:
{"id":"81c61567-c1aa-4114-8544-b91c341f7aa8","jobId":"55d994f4-80d8-4f9e-a361-a86aaba0323e","fileExtension":"sample string 2","createdBy":"796adc7c-2ccc-4074-aa51-e71614ff6c6a","tenantOrganisationId":"e4e84120-c90b-4015-8215-ca2571966bdd"}