Skip to content

Manage Library

A Library in Swytchcode is a collection of API methods or SDK methods grouped together under a project.
The Manage Library section allows you to create new libraries or edit existing ones within a project.


Creating a New Library

To create a new library, go to the project where you want to add it, then click Add Library.
You will need to provide the following details:

  1. Library Name — A descriptive name for the library.
  2. Version — The version number of the library.
  3. Group — A grouping or categorization label.
    Example: Some organizations have very large API specifications, so they split them into groups such as Authentication, Payments, Orders, or User Management. This helps organize methods for easier navigation.
  4. Programming Language (required only for SDKs) — The main programming language of the SDK.
  5. Specification Type — Choose between OpenAPI or Postman.
  6. Spec Link or File Upload — Provide a direct link to the specification file or upload it directly.

Create New Library


Upload Process

Once you have filled in all the details and clicked Add Library, the upload process will start.

  • Processing may take a few minutes depending on the number of methods present in the specification.
  • Internal processing and cleanups are performed before saving the methods.
  • When the upload completes (success or failure), you will receive an email notification with the final status.

Monitoring Upload Status

While the upload is in progress:

  • You can click the Refresh button to view live updates of saved methods.
  • In the Methods screen, you can see:
    • Number of methods saved in the database.
    • Current status of the upload:
      • Active — Upload was successful, and the library is ready to use.
      • Creating — The library is still being uploaded.
      • Failed — There was an issue uploading the library (details are sent via email).

Managing Methods

Once the library is active, you can:

  • View individual method details.
  • Edit a method’s:
    • Name
    • Headers
    • Input parameters
  • Delete methods that are no longer needed.