Skip to content

Provide Dependent Info

Provide a dependent profile to a job.

This endpoint either adds a dependent profile to a job's supporting item or updates which version of an already-provided profile is being referenced.

If the specified profile has not yet been provided to this supporting item, it will be added. If the profile was already provided, this endpoint will update which version of that profile is being referenced.

The profile being provided must belong to the client on the job.

Note

New versions of a profile are not automatically provided to jobs that reference that profile; you must explicitly provide the new version using this endpoint. This ensures we can always know what information was provided to an older job, even if the information changes over time.

Note

Multiple dependent profiles can be provided to a job; simply make a request for each profile you want to provide.

Endpoint

MethodUrl
POST/v1.0/jobs/:job_id/checklist/:supporting_item_id/provide-dependent-info

Path Parameters

job_id
string
required

The unique identifier of the job.

supporting_item_id
string
required

The unique identifier of the supporting item. Obtained from the job's checklist input.

Request Body

profile_id
string
required

The unique identifier of the dependent profile to provide.

profile_version
integer
required

The version number of the dependent profile.

Sample Request

Copied
1curl -X POST 'https://api.worklayer.com/v1.0/jobs/3b31f309-93ad-463a-ad1d-c39cac1c0a3d/checklist/550e8400-e29b-41d4-a716-446655440000/provide-dependent-info' \
2-H 'Authorization: Bearer {token}' \
3-H 'Content-Type: application/json' \
4-d '{
5 "profile_id": "e7b513b9-d795-4475-9382-96710ca61622",
6 "profile_version": 1
7}'

Response

Returns an empty response.

Errors

  • 403: Access denied - you are not allowed to provide the profile as a supporting item
  • 403: Profile not owned by client - the specified profile is not owned by the client of the job
  • 404: Job not found - the specified job was not found
  • 404: Supporting item not found - the specified supporting item was not found
  • 404: Profile not found - the specified profile or profile version was not found
  • 400: Invalid supporting item type - the supporting item is not of the right type for this action
Last updated on December 9, 2024