Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update a bank

Updates one or more fields of a bank. Only the fields included in the request body are changed; everything left out keeps its current value, including the slug.

When slug is included it must stay unique across all banks. As with a full update, omitting logo and logo_path keeps the current logo.

patch
/banks/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the bank.

Body

The body of a bank partial update request sent as JSON. Only the fields included in the body are changed; every field is optional.

namestring · max: 64Optional

The display name of the bank.

slugstring · max: 64Optional

The unique reference of the bank. Omitting it keeps the current slug.

Pattern: ^[-a-zA-Z0-9_]+$
logo_pathstring · nullableWrite-onlyOptional

The storage path of an image that is already present in media storage, used instead of uploading a file. Omitting it keeps the current logo.

Responses
200

The updated bank.

application/json

A bank record.

pkintegerRead-onlyOptional

The unique identifier of the bank.

namestring · max: 64Optional

The display name of the bank.

slugstring · max: 64Optional

The unique reference of the bank.

logostring · nullableOptional

The absolute address of the bank's logo, or null when the bank has no logo.

logo_pathstring · nullableOptional

Always null. This field only carries a value on the way in; the address the logo resolves to is reported in logo.

patch/banks/{id}/
PATCH /api/v1/remote/1/banks/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "name": "Example Bank",
  "slug": "example-bank"
}
{
  "pk": 12,
  "name": "Example Bank",
  "slug": "example-bank",
  "logo": "https://sandbox.akinon.com/media/banks/example-bank.png",
  "logo_path": null
}

Last updated

Was this helpful?