--- title: "Create or update a REST data source" slug: "create-or-update-a-rest-data-source" updated: 2026-04-22T14:22:01Z published: 2026-04-22T14:22:50Z canonical: "docs.zilliant.com/create-or-update-a-rest-data-source" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Create or update a REST data source Put/v1/SyncRegistry/RestDataSource/{restDataSourceId} Creates a REST data source in the SRS database or updates an existing one. SecurityAPI Key: AuthorizationHeader parameter nameAuthorization Add an **Authorization** header to authenticate requests originating outside of Zilliant's internal network. Set the header to `Authorization: OAuth <tokenResponseBase64>`. `<tokenResponseBase64>` is the Base64-encoded entire JSON response body returned by the Salesforce OAuth token endpoint. Encode the full JSON payload, not only the **access_token** field. For details, read [Request an access token](https://docs.zilliant.com/apidocs/request-an-access-token). Header parametersX-Forwarded-Hoststring OAuth host for your environment. Use it for all requests that originate outside Zilliant’s internal network. For details, read **X-Forwarded-Host header** in [Introduction](https://docs.zilliant.com/apidocs/introduction-2#xforwardedhost-header). Path parametersrestDataSourceIdstringRequired Unique REST data source ID to fetch. ExamplerestZilliantProd Body parametersCreate or update a REST data source Example of a REST data source details ```json { "restDataSourceId": "456789012", "endpoint": "https://example.com/api", "userName": "user", "encryptedPassword": "encrypted_password" } ``` object restDataSourceIdstring Unique REST data source ID. Must match the `restDataSourceId` path parameter. When creating, enter a meaningful ID. When updating, enter an ID of that data source. Example456789012 endpointstring (uri) URL to send data to or receive data from the REST data source. Examplehttps://example.com/api userNamestring User name used to log into the REST service. Exampleuser encryptedPasswordstring Encrypted password used to log into the REST service. Exampleencrypted_password Responses204 REST data source created or updated successfully.