# Class: AddMappingRequest

## tibco.objectapi.service.request.AddMappingRequest

#### new AddMappingRequest(roleName, targetId)

Object AddMappingRequest Usage: `RestApiService.getRoleService().addMapping(request, callback);`

##### Parameters:

Name | Type | Description
--- | --- | ---
`roleName` | string | Name of the role to map
`targetId` | string | Id of the mapping target

Since:
  - 4.0.0

### Members

#### targetVersion :number

Query parameter: 'targetVersion' (Java type: int) Version of the target, this is not required for non BPM environments

##### Type:

- number

Since:
  - 4.0.0