anchor.diff:  To add metadata to a revision, follow the steps to [Add Metadata to an Object](../adminguide/metadata.html). 
   <% else %>
   To add metadata to a revision, follow the steps to [Add Metadata to an Object](https://docs.cloudfoundry.org/adminguide/metadata.html). 
  -<% end %>+<% end %>
  
positive.code: 1. Create a deployment using CAPI:
  
  	```
  	cf curl v3/deployments" \
  	-X POST \
  	-d '{
  	  "revision": {
  
negative.code: 1. Get the GUID of the app:
  
  	```
  	cf app APP-NAME --guid
  	```
  
  1. Run the following command:
  