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": "76dc20a1-d234-4a82-82f7-f70bda4f3b30",
  "jobId": "e93fc2f2-91cb-4f49-8ab9-6fee7553e353",
  "fileExtension": "sample string 2"
}

text/html

Sample:
{"id":"76dc20a1-d234-4a82-82f7-f70bda4f3b30","jobId":"e93fc2f2-91cb-4f49-8ab9-6fee7553e353","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": "cf1fd182-a70f-417d-8236-aabc0899ddf5",
  "jobId": "3135398a-fe68-4507-83f3-170e05e5d3b1",
  "fileExtension": "sample string 2",
  "createdBy": "cc5d2426-930f-4140-97e9-0ba74d9d2370",
  "tenantOrganisationId": "b89c3d98-c215-483e-8096-224a79280132"
}

text/html

Sample:
{"id":"cf1fd182-a70f-417d-8236-aabc0899ddf5","jobId":"3135398a-fe68-4507-83f3-170e05e5d3b1","fileExtension":"sample string 2","createdBy":"cc5d2426-930f-4140-97e9-0ba74d9d2370","tenantOrganisationId":"b89c3d98-c215-483e-8096-224a79280132"}