Validate that a member can be named or renamed to the given value without creating a conflict

put/commons/validations/folders/{folderId}/members/{memberId}/name
Internal-Use Only

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.

Request Samples

1

Response Samples

1{
2 "valid": true,
3 "version": 1
4}

Path Parameters

NameTypeRequiredDescription
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.

Query Parameters

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OKThe request was successfully processed. The body contains the result, whether the name/type is acceptable.Schema
204No ContentThe name is acceptable. The Accept header was application/json, so no further data is returned.
400Bad RequestThe request was invalid.Schema
409ConflictThe supplied name would create a conflictSchema