Upsert (or delete with payload=null) this device’s encrypted bindings
PUT
/v1/pouches/{pouchId}/bindings
const url = 'https://app.skillpouch.net/v1/pouches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/bindings';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"bindings":[{"artifact_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","payload":"example","key_gen":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 } ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pouchId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”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}