Invitations
Name | Description |
---|---|
token | token |
entourage_id | entourage |
invitation[mode] | SMS or partner_following |
invitation[phone_numbers] | [array] |
Content-Type: application/json Host: example.org Cookie:
POST /api/v1/entourages/5/invitations
{"token":"foobar22","invite":{"mode":"SMS","phone_numbers":["+33612345678","+33612345679"]}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"1e6e4a7ab9e24e9779188d015a4f4523" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 9b2fa75c-9e7e-4e15-a64f-3a4773600f0c X-Runtime: 0.073440 Content-Length: 55
201 Created
{ "successfull_numbers": [ "+33612345678", "+33612345679" ] }