Api::V1::Entourages::InvitationsController API

Invitations

Create invitations

POST /api/v1/entourages/:entourage_id/invitations

Parameters

Name Description
token token
entourage_id entourage
invitation[mode] SMS or partner_following
invitation[phone_numbers] [array]

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

POST /api/v1/entourages/5/invitations

Body

{"token":"foobar22","invite":{"mode":"SMS","phone_numbers":["+33612345678","+33612345679"]}}

Response

Headers

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

Status

201 Created

Body

{
  "successfull_numbers": [
    "+33612345678",
    "+33612345679"
  ]
}