Ga naar inhoud

Change an app

PUT
/api/v1/apps/{id}
curl --request PUT \
--url https://example.com/api/v1/apps/example \
--header 'Content-Type: application/json' \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E \
--data '{ "name": "example", "description": "example", "subscriptions": [ "example" ], "write": true }'

Its name, description, connections and permission; its keys stay.

id
required
string

The id of the app.

Media typeapplication/json
object
name
required
string
description
string
subscriptions

Aliases of connections; null: all, also later ones; left out: none.

Array<string> | null
write
boolean

Example generated

{
"name": "example",
"description": "example",
"subscriptions": [
"example"
],
"write": true
}

OK.

Media typeapplication/json

An app as the management API shows it.

object
id
required
string
name
required
string
description
required
string
subscriptions

The connections (aliases) it may use; null: all of them, also later ones.

Array<string> | null
write
required

It may write (steer); otherwise only read.

boolean
created_by
string | null
created_at
required
string format: date-time
keys
required
Array<object>

A key of an app, without the key itself.

object
id
required
string
name
required
string
last4

The last four characters, to recognise it.

string | null
created_at
required
string format: date-time
last_used_at
string | null format: date-time
last_used_at
string | null
reach

Single app only: what it reaches, per connection.

Array<object> | null

A connection an app reaches.

object
alias
required
string
dataset_id
required
string
dataset_title
string | null
provider_did
required
string
provider_name
string | null
state
required
string
objects
required
Array<string>
url
required

The gateway address of the connection.

string
write
required

The app may write here: it may write, and the agreement allows it.

boolean
key
One of:
null

Example generated

{
"id": "example",
"name": "example",
"description": "example",
"subscriptions": [
"example"
],
"write": true,
"created_by": "example",
"created_at": "2026-04-15T12:00:00Z",
"keys": [
{
"id": "example",
"name": "example",
"last4": "example",
"created_at": "2026-04-15T12:00:00Z",
"last_used_at": "2026-04-15T12:00:00Z"
}
],
"last_used_at": "example",
"reach": [
{
"alias": "example",
"dataset_id": "example",
"dataset_title": "example",
"provider_did": "example",
"provider_name": "example",
"state": "example",
"objects": [
"example"
],
"url": "example",
"write": true
}
],
"key": {
"id": "example",
"name": "example",
"key": "example",
"last4": "example",
"created_at": "2026-04-15T12:00:00Z"
}
}

The request is not valid.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

Not found.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}