How to grant office access to a form group
This topic demonstrates how to assign an office to a form group for your Docusign Rooms for Real Estate account. As a prerequisite, make sure that you have created a form group. Assigning an office to a form group associates that group with that office, granting the group access to the office. Granting office access to a form group will enable you to filter which form groups are available based on that office.
Run this code example from our Quickstart or launcher projects: Bash, C#, Java, Node.js, PHP, PowerShell, Python, or Ruby.
Required data
Running the code in this how-to requires this data:
Step 1. Obtain your OAuth token
To make the API calls shown in this how-to, you need a valid OAuth access token. Docusign supports access tokens for three different recommended OAuth grant types: Public Authorization Code Grant, Confidential Authorization Code Grant, and JSON Web Token (JWT) Grant. Choose the OAuth grant type appropriate for your scenario.
See Authentication for guidance on your options to get an OAuth token.
Step 2. Construct your API headers
After you have a valid OAuth access token, you are ready to construct the API headers that you will pass to the API call. Construct your headers like this, but make sure to substitute your valid OAuth access token for {ACCESS_TOKEN}.
Step 3. Retrieve an office ID
Next, make a GET request to your Rooms account by using the Offices:GetOffices method or supporting SDK method to get your office ID. Here’s how you make the call, but make sure to substitute your base path for {BASE_PATH} and your API account ID for {API_ACCOUNT_ID}. Select one of the returned office IDs to use in the next step.
Step 4. Select a form group ID
To find the form group that you want to assign the office to, you need to make a GET request to obtain an available form group ID. The Rooms API will return a list of available form group IDs; select the one you want to continue through the example. Here’s how you make the call but make sure to substitute your API account ID for {API_ACCOUNT_ID}.
Step 5. Call the Rooms API
Now that you have constructed your API headers, make a POST request to the FormGroups:GrantOfficeAccessToFormGroup method to grant office access to your form group for your Rooms account. Here’s how you make the call, but make sure to substitute your base path for {BASE_PATH}, API account ID for {API_ACCOUNT_ID}, form group ID for {FORM_GROUP_ID}, and office ID for {OFFICE_ID}.
Note: This Rooms API call does not require a request body, but still needs to be sent as a POST request.
Expected response
You will receive a 204 Status code response with an empty response body.
Next steps
- Run this code example from our Quickstart or launcher projects: Bash, C#, Java, Node.js, PHP, PowerShell, Python, or Ruby.
- Learn more Rooms API concepts.
- See How to create a form group.
- See How to create a room with data.
- See How to add forms to a room.
- Learn more about Using room templates and task lists.
- See how to Go-Live with a completed app and find the base path for API calls in the production environment.