PUT /v1/pipelines/{id}/followers
from metadata.sdk import configure
from metadata.sdk.entities import Pipelines
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
pipeline_id = "538faa63-d204-46ff-aead-d158d0401cac"
user_id = "user-uuid-here"
# Add a follower
pipeline = Pipelines.add_followers(pipeline_id, [user_id])
print(f"Followers: {len(pipeline.followers)}")
# Remove a follower
pipeline = Pipelines.remove_followers(pipeline_id, [user_id])
# Add a vote
pipeline = Pipelines.add_vote(pipeline_id, vote_type="votedUp")
# Remove a vote
pipeline = Pipelines.remove_vote(pipeline_id)
import static org.openmetadata.sdk.fluent.Pipelines.*;
String pipelineId = "538faa63-d204-46ff-aead-d158d0401cac";
// Add a follower
Pipelines.addFollower(pipelineId, "user-uuid-here");
// Remove a follower
Pipelines.removeFollower(pipelineId, "user-uuid-here");
// Add a vote
Pipelines.vote(pipelineId, "votedUp");
// Remove a vote
Pipelines.vote(pipelineId, "unVoted");
# Add a follower
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '"user-uuid-here"'
# Remove a follower
curl -X DELETE "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers/user-uuid-here" \
-H "Authorization: Bearer {access_token}"
# Add a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "votedUp"}'
# Remove a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "unVoted"}'
{
"id": "538faa63-d204-46ff-aead-d158d0401cac",
"name": "dbt_analytics_customers",
"displayName": "DBT Customer Analytics",
"fullyQualifiedName": "sample_airflow.dbt_analytics_customers",
"description": "Analytics pipeline for customer data processing",
"version": 0.1,
"updatedAt": 1769982668397,
"updatedBy": "admin",
"service": {
"id": "daa58a49-df05-48a3-a417-45dfd12eacf5",
"type": "pipelineService",
"name": "sample_airflow",
"fullyQualifiedName": "sample_airflow"
},
"serviceType": "DBTCloud",
"deleted": false,
"followers": [
{
"id": "user-uuid-here",
"type": "user",
"name": "john.doe"
}
],
"owners": [],
"tags": [],
"votes": {
"upVotes": 0,
"downVotes": 0
},
"domains": []
}
Followers & Votes
Manage followers and votes for pipelines
PUT
/
v1
/
pipelines
/
{id}
/
followers
PUT /v1/pipelines/{id}/followers
from metadata.sdk import configure
from metadata.sdk.entities import Pipelines
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
pipeline_id = "538faa63-d204-46ff-aead-d158d0401cac"
user_id = "user-uuid-here"
# Add a follower
pipeline = Pipelines.add_followers(pipeline_id, [user_id])
print(f"Followers: {len(pipeline.followers)}")
# Remove a follower
pipeline = Pipelines.remove_followers(pipeline_id, [user_id])
# Add a vote
pipeline = Pipelines.add_vote(pipeline_id, vote_type="votedUp")
# Remove a vote
pipeline = Pipelines.remove_vote(pipeline_id)
import static org.openmetadata.sdk.fluent.Pipelines.*;
String pipelineId = "538faa63-d204-46ff-aead-d158d0401cac";
// Add a follower
Pipelines.addFollower(pipelineId, "user-uuid-here");
// Remove a follower
Pipelines.removeFollower(pipelineId, "user-uuid-here");
// Add a vote
Pipelines.vote(pipelineId, "votedUp");
// Remove a vote
Pipelines.vote(pipelineId, "unVoted");
# Add a follower
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '"user-uuid-here"'
# Remove a follower
curl -X DELETE "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers/user-uuid-here" \
-H "Authorization: Bearer {access_token}"
# Add a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "votedUp"}'
# Remove a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "unVoted"}'
{
"id": "538faa63-d204-46ff-aead-d158d0401cac",
"name": "dbt_analytics_customers",
"displayName": "DBT Customer Analytics",
"fullyQualifiedName": "sample_airflow.dbt_analytics_customers",
"description": "Analytics pipeline for customer data processing",
"version": 0.1,
"updatedAt": 1769982668397,
"updatedBy": "admin",
"service": {
"id": "daa58a49-df05-48a3-a417-45dfd12eacf5",
"type": "pipelineService",
"name": "sample_airflow",
"fullyQualifiedName": "sample_airflow"
},
"serviceType": "DBTCloud",
"deleted": false,
"followers": [
{
"id": "user-uuid-here",
"type": "user",
"name": "john.doe"
}
],
"owners": [],
"tags": [],
"votes": {
"upVotes": 0,
"downVotes": 0
},
"domains": []
}
Followers & Votes
Manage followers and votes for pipeline entities.Followers
Add Follower
PUT /v1/pipelines/{id}/followers
UUID of the pipeline.
UUID of the user to add as a follower (sent as request body string).
Remove Follower
DELETE /v1/pipelines/{id}/followers/{userId}
UUID of the pipeline.
UUID of the user to remove.
Votes
Add or Update Vote
PUT /v1/pipelines/{id}/vote
UUID of the pipeline.
Vote type:
votedUp, votedDown, or unVoted.PUT /v1/pipelines/{id}/followers
from metadata.sdk import configure
from metadata.sdk.entities import Pipelines
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
pipeline_id = "538faa63-d204-46ff-aead-d158d0401cac"
user_id = "user-uuid-here"
# Add a follower
pipeline = Pipelines.add_followers(pipeline_id, [user_id])
print(f"Followers: {len(pipeline.followers)}")
# Remove a follower
pipeline = Pipelines.remove_followers(pipeline_id, [user_id])
# Add a vote
pipeline = Pipelines.add_vote(pipeline_id, vote_type="votedUp")
# Remove a vote
pipeline = Pipelines.remove_vote(pipeline_id)
import static org.openmetadata.sdk.fluent.Pipelines.*;
String pipelineId = "538faa63-d204-46ff-aead-d158d0401cac";
// Add a follower
Pipelines.addFollower(pipelineId, "user-uuid-here");
// Remove a follower
Pipelines.removeFollower(pipelineId, "user-uuid-here");
// Add a vote
Pipelines.vote(pipelineId, "votedUp");
// Remove a vote
Pipelines.vote(pipelineId, "unVoted");
# Add a follower
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '"user-uuid-here"'
# Remove a follower
curl -X DELETE "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/followers/user-uuid-here" \
-H "Authorization: Bearer {access_token}"
# Add a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "votedUp"}'
# Remove a vote
curl -X PUT "{base_url}/api/v1/pipelines/538faa63-d204-46ff-aead-d158d0401cac/vote" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{"updatedVoteType": "unVoted"}'
{
"id": "538faa63-d204-46ff-aead-d158d0401cac",
"name": "dbt_analytics_customers",
"displayName": "DBT Customer Analytics",
"fullyQualifiedName": "sample_airflow.dbt_analytics_customers",
"description": "Analytics pipeline for customer data processing",
"version": 0.1,
"updatedAt": 1769982668397,
"updatedBy": "admin",
"service": {
"id": "daa58a49-df05-48a3-a417-45dfd12eacf5",
"type": "pipelineService",
"name": "sample_airflow",
"fullyQualifiedName": "sample_airflow"
},
"serviceType": "DBTCloud",
"deleted": false,
"followers": [
{
"id": "user-uuid-here",
"type": "user",
"name": "john.doe"
}
],
"owners": [],
"tags": [],
"votes": {
"upVotes": 0,
"downVotes": 0
},
"domains": []
}
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission |
404 | NOT_FOUND | Pipeline or user does not exist |
Was this page helpful?
⌘I