---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Associate a request header with a resource

# Associate a request header with a resource {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Define which request headers are expected for each resource within a scripted REST API.

## Vorbereitungen

A REST API resource and a request header must already be defined within the scripted REST API.

Role required: web_service_admin

## Prozedur

1. Navigate to a new Scripted REST Header Association record in one of the following ways

   | Option | Procedure |
   | Navigate through a scripted REST API record | 1. Navigate to AllSystem Web ServicesScripted REST APIs. 2. Select a scripted REST API record. 3. In the Resources related list, select a resource. 4. In the Request Header Associations tab, select New. {#associate-header-api-resource__ol_hr1_pyc_j3c} |
   | Navigate directly to a new Scripted REST Header Association record | Navigate to AllFilter and enter <kbd class="ph userinput">sys_ws_header_map.form</kbd>. |
   |-|-|

   {#associate-header-api-resource__choicetable_fv4_myc_j3c}
2. In the API request header field, select or enter the request header to associate with the resource.
3. **Wahlweise:** In the API resource field, select or enter the API resource the request header should be associated with.  
   If you navigated to a new Scripted REST Header Association record through a scripted REST API record, API resource is pre-populated.
4. Select Submit.

## Ergebnisse

The request headers that you added are included in the exportable OpenAPI specification in the REST API Explorer with a "type: string" schema definition. For more information about exporting OpenAPI specifications, see [Export to OpenAPI specification](https://servicenow-prod.fluidtopics.net/S8e8_FR40nFlJ3eVBRedqg "Export a REST API as an OpenAPI specification to import it into another web services tool.").

