Create a file

Create file

POST https://ris.rightsline.com/v4/file

This endpoint allows you to create a new file.

Headers

Request Body

{
    "id": 2687,
    "link": {
        "url": "https://de324y6j768fq1.cloudfront.net/************",
        "expiration": "2021-04-20T22:44:58.314Z"
    }
}

Example: Upload a file

1. Create file in Rightsline

POST: https://ris.rightsline.com/v4/file (NOTE: file_name char is required)

{
    "title": "Test File",
    "template": {
        "templateId": 1
    },
    "characteristics": {
        "file_name": "final.pdf",
        "notes": "This document has been signed",
        "date_signed":"2020-01-31"
    },
    "parentRelationship": [
        {
            "parentCharTypeId": 4,
            "parentRecordId": 100
        }
    ]
}

A successful response will return the following payload:

{
    "id": 2687,
    "link": {
        "url": "https://*********.cloudfront.net/************",
        "expiration": "2021-04-20T22:44:58.314Z"
    }
}

You will use the url in the response body to upload the file.

2. Upload file data

When uploading the file, you do not need to include any Authorization header, as the URL is already authorized to upload to the specified location.

PUT https://*********.cloudfront.net/************ \
  --data *file binary*

Last updated