Validate that a member can be named or renamed to the given value without creating a conflict
This endpoint can be used by a client to test whether creating or renaming a member would create a naming conflict before actually attempting the operation. When creating a new member, a memberId of @new indicates that the attempted operation would create a new member, where a folderId of @root is a placeholder representing the root level of the folder hierarchy. For example, PUT /commons/validations/folders/@root/members/@new/name?value=TestFolder1&type=folder would check if one could successfully create a root folder named TestFolder1 and respond appropriately. PUT /commons/validations/folders/@myFolder/members/@new/name?value=TestReport1&type=report would check whether a new member named TestReport1 of type report could be added to the user's My Folder.
Name | Type | Required | Description |
---|---|---|---|
folderId | string | true | The identifier of the folder whose members are to be checked. A value of @root indicates checking a root-level folder, and type must be folder. |
memberId | string | true | If a rename is being attempted, the identifier of the member being renamed. If a new member is being created, the @new placeholder is used. |
Name | Type | Required | Description |
---|---|---|---|
typeDefName | string | false | The Type definition name to test against. This must match exactly with the desired value. A null value is compared with null values in the repository. |
type | string | true | The type of the member to be tested. Members of the same type have to be named uniquely, so both the new name and type are required. |
value | string | true | The name to be tested. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request was successfully processed. The body contains the result, whether the name/type is acceptable. | Schema | |
204 | No Content | The name is acceptable. The Accept header was application/json, so no further data is returned. | ||
400 | Bad Request | The request was invalid. | Schema | |
409 | Conflict | The supplied name would create a conflict | Schema |