Create a new custom Field Value.

post

/learn.rest/v1/memberships/{membershipId}/customFieldValues

Request

Supported Media Types
Path Parameters
Body ()
Custom Field Value object that needs to be created.
Root Schema : CustomFieldValueRequest
Type: object
Request object comprising a custom field and it's values.
Show Source
Example:
{
    "customFieldId":407,
    "value":"JCK"
}
Security
Back to Top

Response

Supported Media Types

201 Response

New custom Field Value created.
Body
Example Response (application/json)
{
    "id":"1",
    "customFieldId":"456",
    "customField":{
        "links":[
            {
                "rel":"canonical",
                "href":"{url}/learn.rest/v1/learnCenters/123/userCustomFields/456"
            }
        ]
    },
    "value":"User Custom Field Value",
    "links":[
        {
            "rel":"canonical",
            "href":"{url}/learn.rest/v1/learnCenters/456/userCustomFields/1"
        }
    ]
}

400 Response

Request has incorrect syntax or does not contain a field that is required.

409 Response

Another resource with the same identifier already exists.

500 Response

Internal server error.
Back to Top