Skip to main content
POST
Add a mock to a work item

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Path Parameters

workItemId
string
required

Body

application/json
attachmentId
string<uuid>
required

The id the upload route answered for the image.

name
string
required

The mock's name: 1 to 80 characters.

Required string length: 1 - 80
criterionIds
string[]

The ids of the criteria the mock shows, as the item's spec writes them.

Maximum array length: 50
Required string length: 1 - 200

Response

The mock was added.

data
object
required