Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MVACC] Rapid pro contact creation payload & response #167

Open
dubdabasoduba opened this issue Jun 29, 2021 · 0 comments
Open

[MVACC] Rapid pro contact creation payload & response #167

dubdabasoduba opened this issue Jun 29, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation MVAC Work related to MVAC

Comments

@dubdabasoduba
Copy link
Member

Context

  • In case you need to create a contact on rapid pro. You POST to the following endpoint https://{rapidpro-base-url}//api/v2/contacts.json

Payload

{
  "name": "Ben Haggerty",
  "language": "eng",
  "urns": [
    "tel:+250788123123",
    "twitter:ben"
  ],
  "groups": [
    "6685e933-26e1-4363-a468-8f7268ab63a9"
  ],
  "fields": {
    "nickname": "Macklemore",
    "side_kick": "Ryan Lewis"
  }
}

Response after POST

{
  "uuid": "09d23a05-47fe-11e4-bfe9-b8f6b119e9ab",
  "name": "Ben Haggerty",
  "language": "eng",
  "urns": [
    "tel:+250788123123",
    "twitter:ben"
  ],
  "groups": [
    {
      "name": "Devs",
      "uuid": "6685e933-26e1-4363-a468-8f7268ab63a9"
    }
  ],
  "fields": {
    "nickname": "Macklemore",
    "side_kick": "Ryan Lewis"
  },
  "blocked": false,
  "stopped": false,
  "created_on": "2015-11-11T13:05:57.457742Z",
  "modified_on": "2015-11-11T13:05:57.576056Z"
}
@dubdabasoduba dubdabasoduba added documentation Improvements or additions to documentation MVAC Work related to MVAC labels Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation MVAC Work related to MVAC
Projects
None yet
Development

No branches or pull requests

1 participant