{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":403,"path":"api-reference/rest-api-explorer/AssocQueryParmResource.md","title":"Associate query parameters with a resource","bundle":null,"doc_type":null,"release":"australia","body":"\n# Associate query parameters with a resource\n\nAssociate scripted REST API query parameters with a resource.\n\n## Before you begin\n\nRole required: web\\_service\\_admin\n\n## About this task\n\nThe following procedure describes the process for manually associating a query parameter with a resource. For details about automatically generating query parameters for requests in non-production instances, see [Automatically generate API request definitions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/autogenerate-api-request-definitions.md).\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Web Services** &gt; **Scripted REST APIs**.\n\n2.  Select a scripted REST API record.\n\n3.  In the **Resources** related list, select **New**\n\n4.  In the **API query parameter**, select or enter the query parameter to associate with the resource.\n\n5.  In the **API resource**, select or enter the scripted REST API resource to associate with the query parameter.\n\n6.  Select **Submit**.\n\n\n## What to do next\n\nAfter associating the parameters with a scripted REST resource, configure any required ACLs for the API or endpoint. For details, see [Configure a scripted REST API resource to require an ACL](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/t_WbSvcOpRqACL.md).\n\n**Parent Topic:**[Create a scripted REST API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/t_CreateAScriptedRESTService.md)\n\n"}}