> This page is for RakeSign.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Post documents by ID map-record

POST https://api.cloudraker.com/v1/signing/documents/{id}/map-record
Content-Type: application/json

Uses the same resource permissions and lifecycle as the RakeSign application. Integration access is limited to its shared team. Required scopes: documents:write.

Reference: https://docs.cloudraker.com/rakesign/api/rake-sign/signing-post-documents-by-id-map-record

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `version` (integer, required)
- `spaceId` (string, required)
- `definitionId` (string, required)
- `objectId` (string, required)
- `mappings` (list of V1SigningDocumentsIdMapRecordPostRequestBodyContentApplicationJsonSchemaMappingsItems, required)

## Response

### 200

Authorized signing resource.

- `values` (map from string to Schema0, required)
- `source` (V1SigningDocumentsIdMapRecordPostResponsesContentApplicationJsonSchemaSource, required)

## Errors

### 400 Bad Request Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 401 Unauthorized Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 403 Forbidden Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 404 Not Found Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 409 Conflict Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 429 Too Many Requests Error

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

- `code` (enum, required)
  - Allowed values: `rate_limited`
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 503 Service Unavailable Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

## Types

### V1SigningDocumentsIdMapRecordPostRequestBodyContentApplicationJsonSchemaMappingsItems

- `from` (string, required)
- `to` (string, required)

### Schema0

- string
- double
- boolean
- list of Schema0
- map from string to Schema0

### V1SigningDocumentsIdMapRecordPostResponsesContentApplicationJsonSchemaSource

- `spaceId` (string, required)
- `definitionId` (string, required)
- `objectId` (string, required)

## Examples

**Request**

```json
{
  "version": 1,
  "spaceId": "string",
  "definitionId": "string",
  "objectId": "string",
  "mappings": [
    {
      "from": "string",
      "to": "string"
    }
  ]
}
```

**Response**

```json
{
  "values": {},
  "source": {
    "spaceId": "string",
    "definitionId": "string",
    "objectId": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/v1/signing/documents/id/map-record"

payload = {
    "version": 1,
    "spaceId": "string",
    "definitionId": "string",
    "objectId": "string",
    "mappings": [
        {
            "from": "string",
            "to": "string"
        }
    ]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/v1/signing/documents/id/map-record';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"version":1,"spaceId":"string","definitionId":"string","objectId":"string","mappings":[{"from":"string","to":"string"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/v1/signing/documents/id/map-record"

	payload := strings.NewReader("{\n  \"version\": 1,\n  \"spaceId\": \"string\",\n  \"definitionId\": \"string\",\n  \"objectId\": \"string\",\n  \"mappings\": [\n    {\n      \"from\": \"string\",\n      \"to\": \"string\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/v1/signing/documents/id/map-record")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"version\": 1,\n  \"spaceId\": \"string\",\n  \"definitionId\": \"string\",\n  \"objectId\": \"string\",\n  \"mappings\": [\n    {\n      \"from\": \"string\",\n      \"to\": \"string\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.cloudraker.com/v1/signing/documents/id/map-record")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"version\": 1,\n  \"spaceId\": \"string\",\n  \"definitionId\": \"string\",\n  \"objectId\": \"string\",\n  \"mappings\": [\n    {\n      \"from\": \"string\",\n      \"to\": \"string\"\n    }\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cloudraker.com/v1/signing/documents/id/map-record', [
  'body' => '{
  "version": 1,
  "spaceId": "string",
  "definitionId": "string",
  "objectId": "string",
  "mappings": [
    {
      "from": "string",
      "to": "string"
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/v1/signing/documents/id/map-record");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"version\": 1,\n  \"spaceId\": \"string\",\n  \"definitionId\": \"string\",\n  \"objectId\": \"string\",\n  \"mappings\": [\n    {\n      \"from\": \"string\",\n      \"to\": \"string\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "version": 1,
  "spaceId": "string",
  "definitionId": "string",
  "objectId": "string",
  "mappings": [
    [
      "from": "string",
      "to": "string"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/v1/signing/documents/id/map-record")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```