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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the bank.
The body of a bank partial update request sent as JSON. Only the fields included in the body are changed; every field is optional.
The display name of the bank.
The unique reference of the bank. Omitting it keeps the current slug.
^[-a-zA-Z0-9_]+$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.
The updated bank.
A bank record.
The unique identifier of the bank.
The display name of the bank.
The unique reference of the bank.
The absolute address of the bank's logo, or null when the bank has no logo.
Always null. This field only carries a value on the way in; the address the logo resolves to is reported in logo.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested bank does not exist.
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?

