Update a bank
Fully updates a bank.
name and slug are both required. The slug must stay unique across all banks; a slug that belongs to another bank is rejected.
Leaving logo and logo_path out of the request keeps the bank's current logo — a full update does not clear it. To replace the logo, send a new file in logo as multipart/form-data, or send logo_path with the storage path of an image that is already present in media storage.
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 create or full update request sent as JSON.
The display name of the bank.
The unique reference of the bank. May contain only letters, digits, underscores, and hyphens.
^[-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 on a full update 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.
PUT /api/v1/remote/1/banks/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"name": "Example Bank",
"slug": "example-bank",
"logo_path": "banks/example-bank.png"
}{
"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?

