Transaction links

Create a new link type

POST
https://firefly.example.com/api/v1/link-types

Creates a new link type. The data required can be submitted as a JSON body or as a list of parameters (in key=value pairs, like a webform).

Body

JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications.

application/json,application/x-www-form-urlencodedLinkType

Parameters

Response

New link type stored, result in response.

Response fields application/vnd.api+json
400Bad RequestBadRequestResponse

Bad request

Response fields application/json

Unauthenticated

Response fields application/json
404Not FoundNotFoundResponse

Page not found

Response fields application/json
422Unprocessable EntityValidationErrorResponse

Validation error. The body will have the exact details.

Response fields application/json
500Internal Server ErrorInternalExceptionResponse

Internal exception

Response fields application/json

Authorization

firefly_iii_authoauth2

OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.

local_bearer_authhttp (bearer)

A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.