Created
February 3, 2019 04:20
-
-
Save humbertoroa/db32e3bef0bd9ca5498fb20b012b8b3f to your computer and use it in GitHub Desktop.
toda call issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// this is the data I am sending | |
{ | |
"data": { | |
"relationships": { | |
"sender": { | |
"data": { | |
"type": "account", | |
"id": "70960946-cc83-4ce1-8071-03ed72ffb07e" | |
} | |
}, | |
"files": [ | |
{ | |
"data": { | |
"type": "file", | |
"id": "653d2888865f99c885cbbe2e9170fee6b4f1761d815b7f1203a2c86cb0550ad2" | |
} | |
} | |
], | |
"recipient": { | |
"data": { | |
"type": "account", | |
"id": "bbc57904-3c09-4f87-b9be-e60a1952c81a" | |
} | |
} | |
} | |
} | |
}, | |
// this is the error I am getting | |
{ | |
"errors": [ | |
{ | |
"status": 400, | |
"title": "bad-request", | |
"code": "bad-request", | |
"detail": "You must specify a type of file or a set of files to transfer.", | |
"source": { | |
"pointer": "/data/relationships/file-type/data/id" | |
} | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment