Branches

This page is intended for guidance only. For a full up to date specification of the API, please see our self-generating docs at https://api.moropo.com/docs.

This endpoint is used for the creation and deletion of branches.

API URL - https://api.moropo.com/branches

Available actions

  1. Create Branch

  2. Delete Branch

Example - Creating a Branch

Note this request uses POST to inform the API that a branch is being created

curl -X 'POST' \
  'https://api.moropo.com/branches' \
  -H 'accept: */*' \
  -H 'x-app-api-key: MOROPO_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "branchName": "BRANCH_NAME"
}'

Where;

  • MOROPO_API_KEY is the API key for the target app, found in your Moropo settings.

  • BRANCH_NAME is the name of the target branch to download tests from.

Expected Response

Successfully created branch BRANCH_NAME

Example - Deleting a Branch

Note this request uses DELETE to inform the API that a branch is being deleted

curl -X 'DELETE' \
  'https://api.moropo.com/branches' \
  -H 'accept: */*' \
  -H 'x-app-api-key: MOROPO_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "branchName": "BRANCH_NAME"
}'

Where;

  • MOROPO_API_KEY is the API key for the target app, found in your Moropo settings.

  • BRANCH_NAME is the name of the target branch to download tests from.

Expected Response

Successfully deleted branch BRANCH_NAME

Last updated