Skip to content

Upsert (or delete with payload=null) this device’s encrypted bindings

PUT
/v1/pouches/{pouchId}/bindings
curl --request PUT \
--url https://app.skillpouch.net/v1/pouches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/bindings \
--header 'Content-Type: application/json' \
--data '{ "bindings": [ { "artifact_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "payload": "example", "key_gen": 1 } ] }'
pouchId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Media typeapplication/json
object
bindings
required
Array<object>
>= 1 items <= 500 items
object
artifact_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
payload
required
Any of:
string
<= 21846 characters /^[A-Za-z0-9_-]*$/
key_gen
required
integer
>= 1 <= 9007199254740991

Example generated

{
"bindings": [
{
"artifact_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"payload": "example",
"key_gen": 1
}
]
}

Default Response

Media typeapplication/json
object
ok
required
boolean
data
required
object
meta
required
object
request_id
required
string
next_cursor
string | null

Example

{
"ok": true
}