Skip to navigation

Update a study task spec

Updates the specified task specification by setting the values of the parameters passed. Omitted properties are left untouched.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Path parameters

studyIdstringRequiredformat: "^sdy_[a-zA-Z0-9]{10,22}$"
The unique identifier of the study.
taskSpecIdstringRequiredformat: "^tsp_[a-zA-Z0-9]{10,22}$"
The unique identifier of the task specification.

Headers

X-Studies-Api-VersionstringOptional

Request

The task specification attributes to change.
titlestringOptional
The title of the task specification.
descriptionstring or nullOptional
The description of the task specification.
scheduleobjectOptional

Partial update to a task specification schedule. The type discriminator selects which nested details object is present.

executionobjectOptional

Partial update to a task specification’s execution. The type discriminator selects which nested workflow patch object is present.

Response headers

X-RateLimit-LimitintegerOptional
The number of requests permitted in the current rate limit window.
X-RateLimit-RemainingintegerOptional

The number of requests still available in the current rate limit window. When several limits apply, this reflects the per-API-key limit, so a request can be rejected while this value is above zero.

X-RateLimit-ResetintegerOptional
The number of seconds until the current rate limit window resets.

Response

The updated task specification.
idstringformat: "^tsp_[a-zA-Z0-9]{10,22}$"
Unique identifier for a study task specification.
titlestring
The title of the task specification.
descriptionstring or null
The description of the task specification.
typeenum
The kind of work a task specification describes.
Allowed values:
executionobject or null

Execution configuration for typed task specs. Null for other task specs.

scheduleobject

Schedule for a task specification. The type discriminator selects which of one_off, recurring or conditional is present; the others are omitted. timezone is set from the study on create and always returned on read.

targetobject
Target type embedded on a task specification response.
studyobject
The study a record belongs to, as embedded in animals, dosages, measurements, observations and samples. Carries the same attributes as a study retrieved directly, except that the project is given as an identifier rather than an embedded object.
created_atdatetime

UTC timestamp with microsecond precision, always suffixed with Z, in the form yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

updated_atdatetime

UTC timestamp with microsecond precision, always suffixed with Z, in the form yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error