/
Create remote file mappin...
POST /v3/remote-file-mappings
Create a new remote file mapping configuration
Security
API_Key
Remote file mapping data for creation
A user-supplied name to identify this RFM config
Example:"Google Analytics Replacement"
A string GUID used as the uploaded replacement file's "name" in S3
Example:"8c59d02b-6ebc-4893-9391-9be26c6d34cc"
The replacement URL, or else the name of the replacement file before it was uploaded
Example:"https://example.com/replacement-script.js"
POST
curl -i -X POST \
'https://api.observepoint.com/v3/remote-file-mappings?accountId=123' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "Google Analytics Replacement",
"fileId": "8c59d02b-6ebc-4893-9391-9be26c6d34cc",
"fileUrl": "https://example.com/replacement-script.js",
"matchType": "equals",
"matchValue": "https://www.google-analytics.com/analytics.js"
}'Remote file mapping created successfully
A user-supplied name to identify this RFM config
Example:"Google Analytics Replacement"
A string GUID used as the uploaded replacement file's "name" in S3
Example:"8c59d02b-6ebc-4893-9391-9be26c6d34cc"
The replacement URL, or else the name of the replacement file before it was uploaded
Example:"https://example.com/replacement-script.js"
The request URL to be replaced (or the regex that matches URLs to replace)
Example:"https://www.google-analytics.com/analytics.js"
Foreign key reference to accounts table. The owner of this RemoteFileMapping
Example:343
Foreign key reference to the users table. Who updated this RFM most recently?
Example:1362
Response
{ "id": 123, "name": "Google Analytics Replacement", "fileId": "8c59d02b-6ebc-4893-9391-9be26c6d34cc", "fileUrl": "https://example.com/replacement-script.js", "matchType": "equals", "matchValue": "https://www.google-analytics.com/analytics.js", "accountId": 343, "createdBy": 1362, "createdAt": "2024-01-01T10:15:00.000Z", "updatedBy": 1362, "updatedAt": "2024-01-02T10:15:00.000Z" }