Is it possible to create, upload, and deploy a Change Set in Apex? For example I can use /services/data/v37.0/sobjects/ApexClass to create classes. Is there a similar service for Change Sets? I don't see anything related to deployments on the SF Metadata API Developer Guide.

1 Answer 1


No, you can't create/alter/delete change sets using the API. There's some various ideas you can vote on. In the meantime, you could consider creating a package, which at least helps you group items together, and can be used with the Metadata API.

  • There is something coming at Dreamforce 2016 called Artifacts - "the next-get packaging solution". I don't know yet how this relates to change sets, but it is worth keeping an eye on. Commented Aug 16, 2016 at 7:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .