apex - How do I create/modify Custom Labels programatically ... 1 Answer. Sorted by: 6. Custom Labels are part of Metadata API. You can create it and modify by means of tools, that work with metadata. For example, using ant migration tool. In apex you can do it with Andrew Fawcett's Apex Metadata API. Share. Improve this answer.