Skip to content

Instantly share code, notes, and snippets.

@dtolb
Created November 20, 2015 21:17
Show Gist options
  • Save dtolb/a21073909cd770e5fdbf to your computer and use it in GitHub Desktop.
Save dtolb/a21073909cd770e5fdbf to your computer and use it in GitHub Desktop.
Create endpoint
POST /v1/users/{user-id}/domains/{domain-id}/endpoints
{
"name" : "jsmith_mobile",
"description" : "John Smiths mobile client",
"domain_id" : "{domain-id}",
"application_id" : "{application-id}",
"enabled" : "true",
"credentials" : { "password" : "abc123" }
}
HTTP/1.1 201 Created
Location: /v1/users/{user-id}/domains/{domain-id}/endpoints/{endpoint-id}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment