Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl --request POST \
- --url http://yellowjersey.lvh.me:3000/api/contacts \
- --header 'accept: application/vnd.api+json;version=1' \
- --header 'authorization: Token token="CCcD8US7JW9Zx11e38Ty47XY", email="tom@yellowjersey.co.uk"' \
- --header 'content-type: application/json' \
- --data '{
- "data": {
- "attributes": {
- "position": null,
- "is-business": false,
- "business-name": null,
- "date-of-birth": null,
- "email": "will@yellowjersey.co.uk",
- "first-name": "Will",
- "home-phone": null,
- "last-name": "Leedham",
- "middle-name": null,
- "mobile-phone": null,
- "title": "Mr",
- "work-phone": null,
- "gender": null,
- "occupation": null,
- "identity-card-no": null,
- "driving-license-no": null,
- "social-security-no": null,
- "marital-status": null,
- "address-line1": "20 Streatham Vale",
- "address-line2": null,
- "address-line3": null,
- "address-city": "London",
- "address-state": "",
- "address-postcode": "SW16 5TE",
- "address-country": null,
- "address-country-code": "gbr",
- "address-guid": null,
- "website": null,
- "contact-description": null,
- "preferred-contact-method": null,
- "time-zone": null
- },
- "relationships": {
- "status": {
- "data": {
- "type": "statuses",
- "id": "5"
- }
- }
- },
- "type": "contacts"
- }
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement