Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

URI template component requirements

Updated on April 6, 2022

The variable and literal components of a URI template require specific formatting. Apply these requirements to URI templates when you define different service REST rules for distinct resource URIs.

The following requirements apply to URI template components:

  • The first component in a URI template must be a literal component.
  • Variable components must start with '{' and end with '}', and these characters cannot be nested.
  • Variable components cannot be empty.
  • A component cannot contain both literal and variable syntax, for example, api_{id}.
  • Components cannot start with special characters except for '{', '}', and '/'.
  • Components cannot contain reserved characters such as '?' or '#'.
  • Regular expression syntax is not supported.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us