Skip to content

Create a resource (v1)

Ryan Newington edited this page Jan 11, 2017 · 2 revisions

Used to create a resource in the FIM Service

New implementations should use the v2 API call

Request

Method URL
POST /v1/resources/

Request Body

This request type requires a JSON-formatted list of attribute/value pairs to save with the resource. An ObjectType attribute is required in the body.

Response

Response Codes

See the topic on error handling for the response codes that this API call can return.

Response Body

If successful, this method will return the object ID of the newly created resource

Examples

Request

POST /v1/resources/
{
   "ObjectType":"Person",
   "AccountName":"testuser"
   "DisplayName":"Test User"
}

Response

HTTP/1.1 200 OK
cc9d3f44-3232-4f6c-a412-d8a191574175