Skip to main content
POST
/
api
/
v1
/
sharing
/
transfers
Create a new transfer
curl --request POST \
  --url http://localhost:3000/api/v1/sharing/transfers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromFlockId": "<string>",
  "toFlockId": "<string>",
  "resourceType": "<string>",
  "quantity": "<string>",
  "date": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
fromFlockId
string

fromFlockId — see API source for exact type.

toFlockId
string

toFlockId — see API source for exact type.

resourceType
string

resourceType — see API source for exact type.

quantity
string

quantity — see API source for exact type.

date
string

date — see API source for exact type.

Response

Created

message
string
data
object