Create Bypass Code
POST {{HOST}}/admin/v1/MyBypassCodes
This step requests to create a bypass code.
Prerequisites for this step: - Use the 'Obtain ME access_token' to obtain a valid access token. - Use 'Get my information' to obtain the user 'id' value.
In the request, you must include the value of the user id returned in 'Get my information'.
Request Body
{"user"=>{"value"=>"{{userId}}"}, "schemas"=>["urn:ietf:params:scim:schemas:oracle:idcs:BypassCode"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: Created
{"code":"266090512569","actualUsageCount":0,"schemas":["urn:ietf:params:scim:schemas:oracle:idcs:BypassCode"],"id":"c9ba28bd271b48e7b2aca7e68dcd7b34","user":{"value":"c810ff4522eb437abac013291c1984d1","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"maxUsageCount":1,"meta":{"created":"2019-01-29T10:33:10.201Z","lastModified":"2019-01-29T10:33:10.201Z","resourceType":"MyBypassCode","location":"https://example.identitycloud.com/admin/v1/MyBypassCodes/c9ba28bd271b48e7b2aca7e68dcd7b34"},"idcsCreatedBy":{"value":"c810ff4522eb437abac013291c1984d1","type":"User","display":"Joe Bloggs","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"idcsLastModifiedBy":{"value":"c810ff4522eb437abac013291c1984d1","type":"User","display":"Joe Bloggs","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"}}